angular.module('faApp')
    .service('ajaxService', ['$http','$location','$q',function ($http,$location,$q) {
		var that = this;
    
    this.export = function(apiUrl,data){
      var url = this.url(apiUrl,data,1);
      location.href = url;
    };

		this.post = function(apiUrl,data){
			var d = $q.defer();
			delete data['createDate'];
			delete data['updateDate'];
			delete data['createBy'];
			delete data['updateBy'];
      delete data['callback'];
			$http.post(this.url(apiUrl,{},1), data).success(function(json){
				if (json.status == "NEED_LOGIN"){
					//$location.path("/login");
                    window.parent.parent.location.href="/login";
					return;
				}else if (that.isSysException(json.statusCode)){
					
				}else if (that.isPermissionDeny(json.statusCode)){
					//$location.path("/system/403");
                    // window.parent.location.href="/system/403";
                    alert("没有权限,联系管理员!");
                     return;
				}else{
					if (!that.isSuccessCode(json.statusCode)){
						json.attribute.statusCode = json.statusCode;
					}
					d.resolve(json.attribute);
				}
			}) .error(function(error){
				d.reject(error);
			});

			return d.promise;
		};

		this.jsonp = function(apiUrl,data){
			var delay = $q.defer(),
				url = this.url(apiUrl,data);
			$http.jsonp(url,{withCredentials: true}).success(function(json){
				if (json.status == "NEED_LOGIN"){
					//$location.path("/login");
                    window.parent.parent.location.href="/login";
					return;
				}else if (that.isSysException(json.statusCode)){
					
				}else if (that.isPermissionDeny(json.statusCode)){
					//$location.path("/system/403");
                   // window.parent.location.href="/system/403";
                   alert("没有权限,联系管理员!");
                     return;
				}else{
					if (!that.isSuccessCode(json.statusCode)){
						json.attribute.statusCode = json.statusCode;
					}
					delay.resolve(json.attribute);
				}
			}).error(function(data,status){
				delay.reject(data);
			});
			return delay.promise;
		};

		this.isSuccessCode = function(code){
			return code == "0000";
		};

		this.isSysException = function(code){
			return code == "3001";
		};

		this.isRenameError = function(code){
			return code == "2009";
		};

		this.isPasswordError = function(code){
			return code == "2009";
		};
		this.isDisableUserError = function(code){
			return code == "2013";
		};
		this.isPermissionDeny = function(code){
			return code == "0006";
		};

		this.url = function(apiUrl,data,isNotJsonp){
			var data = data || {};
			if (!isNotJsonp) data['callback'] = 'JSON_CALLBACK';

			delete data['createDate'];
			delete data['updateDate'];
			delete data['createBy'];
			delete data['updateBy'];

			var query = [];
			angular.forEach(data,function(v,i){
				query.push(i + "=" + encodeURI(data[i]));	
			});
			return App.apiHost + apiUrl + "?" + query.join("&");
		};

		this.getApiUri = function(k){
			var map = { 
        "LOGIN" : "/login.shtml",
        "UPDATELOGININFO" : "/updateLoginInfo.shtml",
        "LOGIN_STATUS" : "/queryLoginStatus.shtml",
        "LOGOUT" : "/logout.shtml",

        "AD_LIST" : "/advert/queryAdvertList.shtml",
        "AD_RECOMMEND_LIST" : "/advert/queryAdvertRecommendList.shtml",
        "AD_ADD" : "/advert/addAdvert.shtml",
        "AD_EDIT" : "/advert/updateAdvert.shtml",
        "AD_QUERY" : "/advert/queryAdvertInfo.shtml",

        "FA_LIST" : "/fa/queryFaUserList.shtml",
        "FA_EDIT" : "/fa/updateFaUser.shtml",
        "FA_QUERY" : "/fa/queryFaUser.shtml",
        "FA_SHOPQUERY" : "/fa/queryShopFaUser.shtml",
        "FA_UPDATE_CERT" : "/fa/updateFaUserForAudit.shtml",
        "FA_UPDATE_SHOPCERT" : "/fa/updateShopFaUserForAudit.shtml",
        "FA_UPDATE_CERTIMG" : "/fa/updateFaUserCert.shtml",
        "FA_QUERY_CERT" : "/fa/queryFaUserForAudit.shtml",
        "FA_BLACK_LIST" : "/blacklist/queryBlacklist.shtml",
        "FA_BLACK_ADD" : "/blacklist/addBlacklist.shtml",
        "FA_BLACK_QUERY" : "/blacklist/queryBlacklistDetail.shtml",
        "FA_SBDSTAT" : "/fa/queryFaUserListAuthPass.shtml",
        "FA_SBDLIST" : "/fa/querySingleFaUserListAuthPass.shtml",
        "FA_SBD_EXPORT" : "/fa/faUserAuthPassCsv.shtml",
        "FA_LIST_EXPORT" : "/fa/faUserCsv.shtml",
        "FA_USER_VISIT"  : "/fa/queryFaUserVisit.shtml",
        "FA_USER_VISIT_ADD" : "/fa/addFaUserVisit.shtml",
        "FA_USER_VISIT_DETAIL_ADD" : "/fa/updateFaUserForVisit.shtml",
        "FA_USER_VISIT_UPDATE" : "/fa/updateADFaUser.shtml",

        //内部理财师汇总统计
        "LCS_MAN_STATICTICS_LIST":"/shop/querylcsmanstatisticsList.shtml",
        //内部理财师汇总统计导出
        "LCS_MAN_STATICTICS_CSV":"/shop/lcsmanstatisticsCsv.shtml",
        // 查询内部理财师详情列表
        "LCS_MAN_DETAIL_LIST" : "/shop/querylcsmanDetailList.shtml",
        //导出内部理财师详情列表
        "LCS_MAN_DETAIL_CSV" : "/shop/lcsmanDetailCsv.shtml",
        //运营部门审核理财师权限--test
        "YUNYING_BUCHECK_FA":"/yunyingbucheckfa.shtml",

        "USER_LIST" : "/queryAllUser.shtml",
        "USER_LISTTREE" : "/listTree.shtml",
        "USER_ADD" : "/addUser.shtml",
        "USER_EDIT" : "/updateUserInfo.shtml",
        "USER_QUERY" : "/queryUserInfo.shtml",

        "LINK_LIST" : "/fl/queryList.shtml",
        "LINK_ADD" : "/fl/addFl.shtml", 
        "LINK_EDIT" : "/fl/updateFl.shtml",
        "LINK_QUERY" : "/fl/queryFl.shtml",
        "LINK_DELETE" : "/fl/deleteFl.shtml",

        "PRODUCT_LIST" : "/product/queryProjectListForPublish.shtml",
        "PRODUCT_ADD" : "/product/addProject.shtml",
        "PRODUCT_EDIT" : "/productUpdate/updateProjectBaseInfo.shtml",
        "PRODUCT_DELETE" : "/productUpdate/deleteProject.shtml",
        "PRODUCT_SET" : "/product/productSet.shtml",
        "PRODUCT_PUBLISH" : "/product/updateProjectForPublish.shtml",
        "PRODUCT_VERIFY" : "/product/updateProjectForVerify.shtml",
        "PRODUCT_QUERY" : "/product/queryProjectForPublish.shtml",
        //渠道查询产品详情
        "QD_PRODUCT_QUERY" : "/product/queryProductQDDetail.shtml",
        "PRODUCT_UPDATE_SALEPROCESS" : "/product/projectAllSubscription.shtml",
        "PRODUCT_UPDATE_Recruitment" : "/productUpdate/changepRecruitmentSummary.shtml",
        "PRODUCT_RECOMMEND" : "/product/addProductRecommend.shtml",
        "PRODUCT_PROFIT_LIST" : "/productUpdate/queryUpdateProjectAnnualRevenue.shtml",
        "PRODUCT_PROFIT_LOG_LIST" : "/product/annualRevenueRebateLog.shtml",
        "PRODUCT_PROFIT_UPDATE" : "/productUpdate/updateProjectAnnualRevenue.shtml",
        "PRODUCT_ATTACH_LIST" : "/productUpdate/queryProjectAttachments.shtml",
        "PRODUCT_ATTACH_UPDATE" : "/productUpdate/updateProjectAttachments.shtml",
        "PRODUCT_TRANS_LIST" : "/product/transferHisQueryList.shtml",
        "PRODUCT_TRANS_ADD" : "/product/transferHisAdd.shtml",
        "PRODUCT_SEND_EMAIL" : "/product/sendConfirmEmail.shtml",
        //产品列表 PEVC
        "QUERY_PRODUCT_LIST":"/product/queryProductList.shtml",
        "UPDATE_PRODUCT_DETAIL":"/productUpdate/updateProduct.shtml",
        "ADD_PRODUCT_DETAIL":"/product/addProduct.shtml",
        //产品新增或者价格变动   提交审核
        "PRODUCT_ADD_CHECK":"/product/projectAddCheck.shtml",
        "PRODUCT_NOTICE_QUERY": "/fpFileRecord/list.shtml",
        "PRODUCT_NOTICE_DELETE": "/fpFileRecord/delete.shtml",
        "PRODUCT_SERIES_ADD": "/product/productSeriesAdd.shtml",
        "PRODUCT_SERIES_LIST": "/product/fpProjectSeriesList.shtml",
        "PRODUCT_SERIES_DELETE": "/product/fpProjectSeriesDelete.shtml",
        "PRODUCT_SEARCHNO_RECORD_LIST": "/product/searchnorecordlist.shtml",
        //根据名字分组查询所有产品
        "QUERY_ALL_PRODUCT_BY_FULLNAME":"/product/queryAllProductByFullName.shtml",
         // 查询已存在分组   打款账户名 
        "QUERY_ALL_EXISTING_ACCOUNT":"/fpAccountVoucher/queryAllExistingAccount.shtml",
        //凭条列表
        "QUERY_FP_ACCOUNT_VOUCHER":"/fpAccountVoucher/listFpAccountVoucher.shtml",
        //凭条详情
        "QUERY_FP_ACCOUNT_VOUCHER_DETAIL":"/fpAccountVoucher/detailFpAccountVoucher.shtml",
                //凭条修改
        "QUERY_FP_ACCOUNT_VOUCHER_UPDATE":"/fpAccountVoucher/updateFpAccountVoucher.shtml",
        //凭条新增
        "QUERY_FP_ACCOUNT_VOUCHER_ADD":"/fpAccountVoucher/addFpAccountVoucher.shtml",
        // 查询已存在分组   凭条上传人
        "QUERY_ACCOUNT_VOUCHER_CRAETEBY":"/fpAccountVoucher/queryAccountVoucherCreateBy.shtml",

        //产品成立公告列表
        "QUERY_PRODUCT_NOTICE_LIST":"/productNotice/queryProductNotice.shtml",
        "QUERY_PRODUCT_NOTICE_DETAIL":"/productNotice/queryProductNoticeDetail.shtml",
        "EDIT_PRODUCT_NOTICE":"/productNotice/updateProductNotice.shtml",
        //外场产品
        "OUT_PRODUCT_LIST":"/outProduct/queryForegroundProductList.shtml",
        "OUT_PRODUCT_DETAIL":"/outProduct/queryForegroundProductDetail.shtml",
        //壹财富xpath配置
        "PRODUCT_REGEX_LIST":"/fpFetchProductRegex/queryAllProductRegex.shtml",
        "EDIT_PRODUCT_REGEX":"/fpFetchProductRegex/updateFetchProductRegex.shtml",
        //个人供应方列表
        "PERSONAL_SUPPLIER_LIST":"/outProduct/queryProductSupplierList.shtml",
        "PERSONAL_SUPPLIER_INFO":"/outProduct/queryProductSupplierInfo.shtml",
        "SAVE_PERSONAL_SUPPLIER":"/outProduct/saveProductSupplierInfo.shtml",
        "PERSONAL_SUPPLIER_LIST_CSV":"/outProduct/queryProductSupplierListCsv.shtml",
        "EDIT_OUT_PRODUCT_SUPPLIER":"/outProduct/editProductSupplier.shtml",
        "EDIT_OUT_PRODUCT":"/outProduct/editForegroundProduct.shtml",
        //发送邮件
        "SEND_OUT_PRODUCT_EMAIL":"/outProduct/sendOutProductEmail.shtml",

        //竞价产品
        "BID_PRODUCT_LIST":"/fpBiddingReceipt/queryFpBiddingReceipt.shtml",
        "BID_PRODUCT_DETAIL":"/fpBiddingReceipt/queryFpBiddingReceiptDetail.shtml",
        "BID_PRODUCT_DTATUS":"/fpBiddingReceipt/checkBiddingStatus.shtml",


        "COMPANY_LIST" : "/projectCompany/listProjectCompany.shtml",
        "COMPANY_ADD" : "/projectCompany/addProjectCompany.shtml",
        "COMPANY_EDIT" : "/projectCompany/updateProjectCompany.shtml",
        "COMPANY_QUERY" : "/projectCompany/queryProjectCompanyView.shtml",
        "COMPANY_DELETE" : "/projectCompany/deleteProjectCompany.shtml",
        "COMPANY_SUB_LIST" : "/infoSubscribe/listInfoSubscribe.shtml",

        "OPERATION_STAT_COUNT" : "/queryCountInfo.shtml",
        //我的业绩,团队业绩
        "queryOrderOwnerUserCountAmount":'/order/queryOrderOwnerUserCountAmount.shtml',
        //用户访问详情
        "queryVistDetail":'/queryVistDetail.shtml',
        //关注客户
        "customerFocus":'/customerFocus.shtml',
        //待办事项列表
        "listFaRevisitTask":"/faRevisitTask/listFaRevisitTask.shtml",
        //标记已完成接口
        "updateFaRevisitTask":"/faRevisitTask/updateFaRevisitTask.shtml",

        "WITHDRAW_LIST" : "/withdraw/queryAccountWithdraw.shtml",
        "WITHDRAW_QUERY" : "/withdraw/queryAccountWithdrawDetail.shtml",
        "WITHDRAW_EDIT" : "/withdraw/updateWithdrawStatus.shtml",

        "FISS_LIST" : "/queryFissInfo.shtml",
        "TOOLS_UPLOAD" : "/fileUpload.shtml",

        "ROLE_LIST" : "/group/queryGroup.shtml",
        "ROLE_ADD" : "/group/addGroup.shtml",
        "ROLE_EDIT" : "/group/updateGroupInfo.shtml",
        "ROLE_QUERY" : "/group/queryGroupInfo.shtml",

        "URL_LIST" : "/group/actionList.shtml",
        "URL_ADD" : "/action/addAction.shtml", 
        
        "SIMU_VIDEO_LIST" : "/productVideo/queryProductVideoInfo",
        "SIMU_VIDEO_EDIT" : "/productVideo/updateProductVideoInfo",

        "SIMU_LIST" : "/fund/fpFundInfoQueryList.shtml",
        "SIMU_ADD" : "/fund/fpFundInfoAdd.shtml",
        "SIMU_EDIT" : "/fund/fpFundInfoUpdate.shtml",
        "SIMU_QUERY" : "/fund/fpFundInfoDetail.shtml",
        "SIMU_REMOVE" : "/fund/fpFundInfoDelete.shtml",
        "SIMU_QUERY_FUNDCODE":"/fund/fpFundInfoCode.shtml",
        
        "SIMU_BUYHIS_LIST" : "/fund/fdAwkwardnessQueryList.shtml",
        "SIMU_BUYHIS_ADD" : "/fund/fdAwkwardnessAdd.shtml",
        "SIMU_BUYHIS_EDIT" : "/fund/fdAwkwardnessUpdate.shtml",
        "SIMU_BUYHIS_QUERY" : "/fund/fdAwkwardnessDetail.shtml",
        "SIMU_BUYHIS_REMOVE" : "/fund/fdAwkwardnessDelete.shtml",

        "SIMU_BUYINFO_LIST" : "/fund/fdBuynoticeQueryList.shtml",
        "SIMU_BUYINFO_ADD" : "/fund/fdBuynoticeAdd.shtml",
        "SIMU_BUYINFO_EDIT" : "/fund/fdBuynoticeUpdate.shtml",
        "SIMU_BUYINFO_QUERY" : "/fund/fdBuynoticeDetail.shtml",
        "SIMU_BUYINFO_REMOVE" : "/fund/fdBuynoticeDelete.shtml",

        "SIMU_COMPANY_LIST" : "/fund/fdCompanyQueryList.shtml",
        "SIMU_COMPANY_ADD" : "/fund/fdCompanyAdd.shtml",
        "SIMU_COMPANY_EDIT" : "/fund/fdCompanyUpdate.shtml",
        "SIMU_COMPANY_QUERY" : "/fund/fdCompanyDetail.shtml",
        "SIMU_COMPANY_REMOVE" : "/fund/fdCompanyDelete.shtml",

        "SIMU_MANAGER_LIST" : "/fund/fdManagerQueryList.shtml",
        "SIMU_MANAGER_ADD" : "/fund/fdManagerAdd.shtml",
        "SIMU_MANAGER_EDIT" : "/fund/fdManagerUpdate.shtml",
        "SIMU_MANAGER_QUERY" : "/fund/fdManagerDetail.shtml",
        "SIMU_MANAGER_REMOVE" : "/fund/fdManagerDelete.shtml",
        
        "SIMU_ORDER_LIST" : "/order/queryOrderTmpList.shtml",
        "SIMU_ORDER_PROID_LIST":"/order/queryOrderTmpByProductList.shtml",
        "SIMU_ORDER_EDIT" : "/order/updateOrderTmp.shtml",

        "SIMU_PRODUCT_RECOMMEND" : "/order/addProductRecommend.shtml",
        
        "MILLION_LIST" : "/activities/queryActivitiesMollionsWealth.shtml",
        "MILLION_ADD" : "/activities/addActivitiesMollionsWealth.shtml",
        "MILLION_EDIT" : "/activities/updateActivitiesMollionsWealth.shtml",
        "MILLION_REMOVE" : "/activities/deleteActivitiesMollionsWealth.shtml",

        "ACTIVITY_ADD" : "/projectActivities/addProjectActivities.shtml",
        "ACTIVITY_EDIT" : "/projectActivities/updateProjectActivities.shtml",
        "ACTIVITY_LIST" : "/projectActivities/queryProjectActivities.shtml",
        "ACTIVITY_NAME_LIST" : "/projectActivities/queryProjectActivitiesNameList.shtml",
        "ACTIVITY_BY_ID" : "/projectActivities/detailProjectActivities.shtml",

        "ROADVIDEO_ADD" : "/fpVideo/addFpVideo.shtml",
        "ROADVIDEO_EDIT" : "/fpVideo/updateFpVideo.shtml",
        "ROADVIDEO_LIST" : "/fpVideo/listFpVideo.shtml",
        "ROADVIDEO_BT_ID" : "/fpVideo/detailFpVideo.shtml",
        "ROADVIDEO_DELETE" : "/fpVideo/deleteFpVideo.shtml",
        "ROADVIDEO_PRO_BY_ID" : "/fpVideo/queryVideoInfo.shtml",
        "ROADVIDEO_PASSWORD" : "/fpVideo/updateFpVideoPassword.shtml",

        "ORDER_LIST" : "/order/queryOrderList.shtml",
        "ORDER_PROID_LIST":"/order/queryOrderByProIdList.shtml",
        "ORDER_QUERY" : "/order/queryOrderDetail.shtml",
        "ORDER_EDIT_STATUS" : "/order/updateOrderStatus.shtml",
        "ORDER_EDIT_DEFRIENDSTATUS" : "/order/updateOrderDefriendStatus.shtml",

        //订单合同详情
        "ORDER_CONTRACT_DETAIL" : "/fpFaUserContract/findFaUserContract.shtml",
        //订单合同编辑新增
        "ORDER_CONTRACT_EDIT" : "/fpFaUserContract/saveFaUserContract.shtml",
        //订单详情by lisu
        "ORDER_DTAIL" : "/order/orderDetail.shtml",

        "ORDER_PHO_DETAIL":"/orderpho/orderPhoDetail.shtml",
        "UPDATE_ORDER_PHO":"/orderpho/updateOrderPho.shtml",
        "ADD_ORDER_PHO":"/orderpho/addOrderPhoData.shtml",
        "ADD_ORDER_PEVC_PHO":"/orderpho/addOrderPhoDataByPE.shtml",
        "M2B_WIN_LIST" : "/activities/queryActivitiesWinList.shtml",
        
        "SUPPLIER_LIST" : "/projectSupplier/listProjectSupplier.shtml",
        "SUPPLIER_FLOW_LIST" : "/projectSupplier/listProjectSupplierFlow.shtml",
        "SUPPLIER_DETAIL" : "/projectSupplier/queryProjectSupplierView.shtml",
        "SUPPLIER_ADD" : "/projectSupplier/addProjectSupplier.shtml",
        "SUPPLIER_EDIT" : "/projectSupplier/updateProjectSupplier.shtml",
        
        "STATISTICAL_ORDER_LIST" : "/queryOrderDetailedList.shtml",
        "STATISTICAL_USER_LIST" : "/queryAuthUserDetailedList.shtml",
        "STATISTICAL_ORDER_LIST_CSV" : "/queryOrderDetailedListCsv.shtml",
        "STATISTICAL_USER_LIST_CSV" : "/queryAuthUserDetailedListCsv.shtml",
        
        "MESSAGE_MANAGER_LIST" : "/sms/smsADList.shtml",
        "MESSAGE_MANAGER_EDIT" : "/sms/updateSMSAD.shtml",

        "REPORT_DETAIL" : "/product/deepAnalyticsDetail.shtml",
        "REPORT_SAVE"   : "/product/deepAnalyticsSave.shtml",

        "MSG_LIST" : "/news/queryMsgList.shtml",
        "MSG_ADD" : "/news/addMsg.shtml",
        "MSG_DETAIL" : "/news/newsDetail.shtml",
        "MSG_UPDATE" : "/news/updateMsg.shtml",
        "MSG_DELETE" : "/news/deleteMsg.shtml",

        "ACT_LIST" : "/activities/queryActList.shtml",
        "ACT_PER_LIST" : "/activities/activitiesNowPerson.shtml",
        "ACT_DETAIL" : "/activities/queryPublicActivitieDetail.shtml",
        "ACT_ADD" : "/activities/addAct.shtml",
        "ACT_UPDATE" : "/activities/updatePublicActivities.shtml",

        "INFO_MANAGE_FEED_BACK" : "/fpUserFeedBack/fpUserFeedBackList.shtml",
        "INFO_MANAGE_BANK_CARD" : "/bank/queryBankCard.shtml",
        "INFO_MANAGE_WITHDRAW" : "/withdraw/queryAccountWithdraw.shtml",
        "INFO_MANAGE_ASKFIR_LIST" : "/withdraw/wallettWithdrawList.shtml",
        "INFO_MANAGE_ASKFIR_DETAIL" : "/withdraw/wallettWithdrawDetail.shtml",
        "INFO_MANAGE_ASKFIR_FAIL" : "/withdraw/wallettWithdrawFail.shtml",
        "INFO_MANAGE_ASKFIR_SUCCESS" : "/withdraw/wallettWithdrawSuccess.shtml",
        "INFO_MANAGE_WITHDRAW_DETAIL" : "/withdraw/queryAccountWithdrawDetail.shtml",
        "INFO_MANAGE_WITHDRAW_UPDATE" : "/withdraw/updateWithdrawStatus.shtml",
        "INFO_MANAGE_PARRINNING_LIST" : "/payment/queryPaymentList.shtml",

        "SWITCH_LIST" : "/switch/querySwitch.shtml",
        "SWITCH_UPDATE" : "/switch/updateSwitch.shtml",

        "API_SETTING_LIST" : "/webApi/queryApiSetting.shtml",
        "API_SETTING_UPDATE" : "/webApi/updateApiSetting.shtml",

        "ORDER_MANAGER_USER_LIST" : "/order/queryOrderManagerUsersList.shtml",
        "NOT_ORDER_MANAGER_USER_LIST" : "/order/queryNotOrderManagerUserList.shtml",
        "ORDER_MANAGER_USER_ADD" : "/order/orderManagerUserAdd.shtml",
        
        "MANAGER_ORDER_USER_ADD" : "/managerOrder/addManagerOrderUser.shtml",
        "MANAGER_ORDER_USER_UPDATE" : "/managerOrder/updateManagerOrderUser.shtml",
        "MANAGER_ORDER_UPDATE_BY_USER" : "/managerOrder/editManagerOrderByUser.shtml",

        "ORDER_FOLLOW_UP_LIST" : "/order/orderReminder.shtml",

        "LICAISHI_MANAGER_USER_LIST" : "/licaishi/queryLicaishiManagerUsersList.shtml",
        "LICAISHI_MANAGER_USER_LIST_OTHER" : "/licaishi/queryLicaishiManagerUsersListForAdviser.shtml",
        "NOT_LICAISHI_MANAGER_USER_LIST" : "/licaishi/queryNotLicaishiManagerUserList.shtml",
        "LICAISHI_MANAGER_USER_ADD" : "/licaishi/licaishiManagerUserAdd.shtml",
        "MANAGER_LICAISHI_USER_ADD" : "/managerLicaishi/addManagerLicaishiUser.shtml",
        "MANAGER_LICAISHI_HUISHOU_BY_USER":"/managerLicaishi/editManagerLicaishiByUser.shtml",

        "FA_MARK_FA_USER" : "/fa/makeCompanyUser.shtml",
        //多平台抓取产品列表
        "EXTERIOR_FETCH__PRO_LIST" : "/fetchProduct/newProductList.shtml", //未匹配SFA产品列表
        "EXTERIOR_FETCH__PRO_DETAIL" : "/fetchProduct/newProductDetail.shtml", //新产品详情
        "NO_BINDING_FETCH__PRO_LIST" : "/fetchProduct/noBindProjectList.shtml", //未绑定的SFA产品列表
        "YES_BINDING_FETCH__PRO_LIST" : "/fetchProduct/bindProjectList.shtml", //已绑定的SFA产品列表
        "REMOVE_BINDING" : "/fetchProduct/unbindProduct.shtml", //解除绑定关系
        "ADD_BINDING" : "/fetchProduct/addFpRelevance.shtml", //新增抓取产品和SFA产品绑定
        "GIVEUP_PRO_CAPTURE" : "/fetchProduct/deleteNewProduct.shtml", //放弃抓取产品
        "SFA__PRO_DETAIL" : "/fetchProduct/projectDetail.shtml", //SFA产品详情
        "UPDATE__PRO_DETAIL" : "/fetchProduct/updateProjectByFetch.shtml", //更新产品信托募集
        "ADD_FETCH_PRO" : "/fetchProduct/addProjectByFetch.shtml", //根据壹财富新增产品
        
        //线下活动名单
        "DOWNLINE_LIST" : "/offlineUser/queryOfflineUserList.shtml", 
        "DOWNLINE_ADD" : "/offlineUser/addOfflineUser.shtml", 
        "DOWNLINE_DETAIL" : "/offlineUser/queryOfflineUserInfo.shtml", 
        "DOWNLINE_UPDATA" : "/offlineUser/updateOfflineUser.shtml", 
        "DOWNLINE_UPFILE" : "/offlineUser/importOfflineUser.shtml", 
        "DOWNLINE_UPFILE_TU" : "/offlineUser/importOfflineUserConfirm.shtml", 
        //发送短信和待办事项
        "REVISIITTASK":"/faRevisitTask/addFaRevisitTask.shtml",
        "QUERYACTSOURCE":"/fa/queryActSource.shtml",


        //渠道产品展示
        "PRODUCT_QUDAO_LIST":"/product/queryProductQDList.shtml",
        
        //渠道查询个人订单
        "ORDER_QDM_LIST":"/order/queryQuDaoMyOrderListByGaiZao.shtml",

        //渠道查询所有订单
        "ORDER_QDA_LIST":"/order/queryQuDaoAllOrderListByGaiZao.shtml",

        //产品查询个人订单
        "ORDER_CPM_LIST":"/order/queryChanPinMyOrderListByGaiZao.shtml",

        //产品查询所有订单
        "ORDER_CPA_LIST":"/order/queryChanPinAllOrderListByGaiZao.shtml",

        //财务查询所有订单
        "ORDER_CWA_LIST":"/order/queryCaiWuAllOrderListByGaiZao.shtml",

        //产品负责人
        "PRODUCT_FZR_LIST":"/order/queryOrderOwnerUserList.shtml",

        //订单详情
        "ORDER_XIANGQING":"/order/queryOrderDetailByGaiZao.shtml",

        //订单修改
        "ORDER_CHANGE":"/order/updateOrderStatusByGaiZao.shtml",
        //20170731 订单流程改造 修改接口更新
        "ORDER_CHANGE_BY_STATUS":"/order/orderStatus.shtml",
        //财务订单详情
        "ORDER_CWA_VIEW":"/order/queryOrderAllDetailByGaiZao.shtml",

        //财务管理员
        "ORDER_CWA_GLY_LIST":"/order/queryCaiWuMyOrderListByGaiZao.shtml",

        // 热销产品
        "MEDIA_RECOMMEND_ADD" : "/recommentProduct/addRecommentProduct.shtml",
        "MEDIA_RECOMMEND_DELETE" : "/recommentProduct/delRecommentProduct.shtml",
        "MEDIA_RECOMMEND_LIST" : "/recommentProduct/queryRecommentProduct.shtml",

        //导出订单
        "ORDER_LIST_EXPORT" : "/order/orderCsv.shtml",

        "USER_BEHAVIOR_LIST" : "/action/toDataList.shtml",

        "USER_SAlECON_LIST" : "/querySalesPerformance.shtml",
        "USER_SAlECON_CVS" : "/querySalesPerformanceCsv.shtml",
        
        //妈妈桑接口
        "BLINDATE_LIST" : "/fpHdFinancingBlind/listFpHdFinancingBlind.shtml",
        "BLINDATE_UPDATA" : "/fpHdFinancingBlind/updateFpHdFinancingBlind.shtml",

        "HONGBAO_LIST":"/activitiesGroup/queryActivitiesGroupInfo.shtml",
        "HONGBAO_LIST_EXPORT":"/activitiesGroup/queryActivitiesGroupInfoCSV.shtml", 
        "HONGBAO_DETAIL":"/activitiesGroup/queActivitiesGroupDetail.shtml",
        "HONGBAO_JIHUO":"/activitiesGroup/activationGroup.shtml",

        // 三方公司 索引
        "SANFANG_QUERY":"/3rdProjectCompany/queryTPC.shtml",
        "SANFANG_UPDATE":"/3rdProjectCompany/updateTPC.shtml",
        "SANFANG_ADD":"/3rdProjectCompany/addTPC.shtml",
        "SANFANG_DELETE":"/3rdProjectCompany/deleteTPC.shtml",
        //机构搜索
        "JIGOU_QUERY":"/product/queryInvestOwner.shtml",

        // 消息推送
        "NEWS_ADD" : "/jPush/addjPushMessage.shtml",
        "NEWS_EDIT" : "/jPush/updatejPushMessage.shtml",
        "NEWS_DELETE" : "/jPush/deljPushMessage.shtml",
        "NEWS_LIST" : "/jPush/listjPushMessage.shtml",


        "FINANCIER_LIST" : "/fpProjectFinancier/listFpProjectFinancier",
        "FINANCIER_ADD" : "/fpProjectFinancier/addFpProjectFinancier",
        "FINANCIER_DELETE" : "/fpProjectFinancier/deleteFpProjectFinancier",

        "SHOP_USER_LIST" : "/shop/queryShopUserList.shtml",

        "SHOP_SUCAI_LIST" : "/shop/queryShopSucai.shtml",
        "SHOP_SUCAI_ADD" : "/shop/addShopSucai.shtml",

        "SHOP_BEHAVIOR_HOME_LIST" : "/shop/queryBehaviorHomeList.shtml",
        "SHOP_BEHAVIOR_PROD_LIST" : "/shop/queryBehaviorProdList.shtml",
        "SHOP_BEHAVIOR_CUST_LIST" : "/shop/queryBehaviorCustList.shtml",
        "SHOP_BEHAVIOR_FP_LIST" : "/shop/queryBehaviorFpList.shtml",
        "SHOP_BEHAVIOR_FOOTERMENU_LIST" : "/shop/queryBehaviorFooterMenuList.shtml",
        "SHOP_USER_FEED_BACK_LIST" : "/fpFaUserFeedback/listFpFaUserFeedback.shtml",
        "SHOP_USER_FEED_BACK_ADD" : "/fpFaUserFeedback/addFpFaUserFeedback.shtml",
        "ORDER_UPDATE_ORDER_DETAIL" : "/orderUpdate/queryOrderDateDetail.shtml",
        "ORDER_UPDATE_ORDER_EDIT":"/orderUpdate/updateOrderDateDetail.shtml",
        "ORDER_UPDATE_ORDER_SAVE":"/orderUpdate/saveOrderIdList.shtml",
        "ORDER_UPDATE_ORDER_QUERY":"/orderUpdate/getOrderIdList.shtml",
        "SHOP_BACK_GROUND_LIST":"/fpShopBackground/listFpShopBackground.shtml",
        "SHOP_BACK_GROUND_ADD":"/fpShopBackground/updateFpShopBackground.shtml",
        "SHOP_BEHAVIOR_CUSTREGISTER_LIST":"/shop/custregister.shtml",
        "SHOP_BEHAVIOR_CRUXDATA_LIST":"/shop/cruxdata.shtml",

        "SHOP_SUBJECT_ADD":"/fpShopSubject/addFpShopSubject.shtml",
        "SHOP_SUBJECT_UPDATE":"/fpShopSubject/updateFpShopSubject.shtml",
        "SHOP_SUBJECT_DELETE":"/fpShopSubject/deleteFpShopSubject.shtml",
        "SHOP_SUBJECT_LIST":"/fpShopSubject/listFpShopSubject.shtml",

        //数据统计-----
        // 月注册量
        "STATISTICS_FA_REGISTER_BY_MONTH": "/queryFaUserRegisterByMonthCount.shtml",
        // 审核中、审核失败、审核通过的人数
        "STATISTICS_FAUSER_ROLE_COUNT": "/queryFaUserRoleCount.shtml",
        // 总注册数
        "STATISTICS_REGISTER_ALL_COUNT": "/queryFaUserCount.shtml",
        // 月订单量 saleMonth销售月份     oAmount总金额   orderCount订单总数
        "STATISTICS_ORDER_BY_MONTH": "/queryOrderCountByMonth.shtml",
        // 认证用户的下单比例 noHasOrderUserCount没有订单的认证用户数   allUserCount所有的认证用户数
        "STATISTICS_ORDER_USER_PER": "/queryOrderUserPer.shtml",
        // 认证理财师role占比
        "STATISTICS_ORDER_FAUSER_ROLE_PROPORTION": "/queryOrderFaUserRoleProportion.shtml",
        // 认证理财师role占比
        "STATISTICS_ORDER_FAUSER_PROPORTION": "/queryFaUserRoleProportion.shtml",
        // 用户下单比例
        "STATISTICS_ORDER_USER_TOTAL": "/queryUserTotalSales.shtml",
        // 用户下单比例
        "STATISTICS_COMPANY_TOTAL": "/queryCommpanyTotal.shtml",

        //PC首页动态统计配置
        "PC_TOTAL_DYNAMIC":"/fpFaTotal/detailFpFaTotal.shtml",
        "PC_TOTAL_DYNAMIC_UPDATE":"/fpFaTotal/updateFpFaTotal.shtml",
        "PLAYOPEN_APPLY_LIST":"/fpShopPlayopenApply/listFpShopPlayopenApply.shtml",
        "PLAYOPEN_APPLY_EDIT":"/fpShopPlayopenApply/updateFpShopPlayopenApply.shtml",

        "SHOP_INFORMATION_ADD":"/fpShopInformation/addFpShopInformation.shtml",
        "SHOP_INFORMATION_EDIT":"/fpShopInformation/editFpShopInformation.shtml",
        "SHOP_INFORMATION_DELETE":"/fpShopInformation/deleteFpShopInformation.shtml",
        "SHOP_INFORMATION_DETAIL":"/fpShopInformation/detailFpShopInformation.shtml",
        "SHOP_INFORMATION_LIST":"/fpShopInformation/listFpShopInformation.shtml",
        "SHOP_INFORMATION_UPORDOWN":"/fpShopInformation/upordownFpShopInformation.shtml",

        //抽奖配置
        "USER_SALEPRIZES_DELETE":"/salesPrizes/deleteSalesPrizes.shtml",
        "USER_SALEPRIZES_ADD":"/salesPrizes/addBatchSalesPrizes.shtml",
        "USER_SALEPRIZESPEOPLE_ADD":"/salesPrizesPeople/addBatchSalesPrizesPeople.shtml",
        "USER_SALEPRIZES_LIST":"/salesPrizes/listSalesPrizes.shtml",
        "USER_SALEPRIZESPEOPLE_LIST":"/salesPrizesPeople/listSalesPrizesPeople.shtml",
        
        "SHOP_YXT_ACTIVITY_COUNT":"/shop/yxtActivity.shtml",
        "SHOP_YXT_ACTIVITY_DRAW":"/shop/yxtActivityDraw.shtml",
        "SHOP_YYZC_ACTIVITY_SHOPLIST":"/wxShopInfo/listWxShopInfo.shtml",
        "SHOP_YYZC_ACTIVITY_SHOPADD":"/wxShopInfo/addWxShopInfo.shtml",
        "SHOP_YYZC_ACTIVITY_SHOPDELETE":"/wxShopInfo/deleteWxShopInfo.shtml",
        "SHOP_YYZC_ACTIVITY_SHOPUPDATE":"/wxShopInfo/updateWxShopInfo.shtml",

        //未录入产品关键词查询
        "STATISTICS_PRODUCT_KEYWORD": "/xcxSearchnoRecord/listXcxSearchnoRecord",
        "STATISTICS_PRODUCT_KEYWORD_USER": "/xcxSearchnoRecord/listXcxSearchnoRecordUser",

        //未录入产品且未反馈，发送消息
        "STATISTICS_SEND_MSG":"/xcxNews/addXcxNews"

			};
			return map[k] || "";
		};

    }]);

